package cn.goktech.sports.modules.contentManage.dao;

import org.apache.ibatis.annotations.Mapper;

import cn.goktech.sports.modules.contentManage.entity.BusinessTypeEntity;
import cn.goktech.sports.modules.sys.dao.BaseMapper;

import java.util.List;

/**
 * 业务类型表
 *
 * @author duanyu<>
 */
@Mapper
public interface BusinessTypeMapper extends BaseMapper<BusinessTypeEntity> {
	/**
	 * 根据内容id获取
	 *
	 * @param entity
	 * @return
	 */
	BusinessTypeEntity getByContentId(BusinessTypeEntity entity);

	/**
	 * 根据内容分类id获取业务类型
	 *
	 * @param contentId
	 * @return
	 */
	List<BusinessTypeEntity> listByContentId(Long contentId);
}
